Add test for deadtime and event time-difference distributions to Acceptance Verification#311
Conversation
- gui.py: refactor to add deadtime test - deadtime.py: implement placeholder for deadtime test following TRR test suite logic
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #311 +/- ##
==========================================
- Coverage 49.33% 45.87% -3.47%
==========================================
Files 85 90 +5
Lines 7795 8894 +1099
==========================================
+ Hits 3846 4080 +234
- Misses 3949 4814 +865 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- ../trr_test_suite/deadtime.py: fix typo in docstring - deadtime.py: implement computation and plots for deadtime and event time distributions, following login in trr_test_suite - resources/source_type_labels.json: add labels and colors for source type, following what defined in ctapipe.containers.EventType
- deadtime.py: minor typo fixes, minor refactors in functions to accept acceptance verification inputs - utils.py: minor refactors in plot_deadtime_and_expo_fit to accept input for acceptance verification - tools_components.py: refactor in DeadtimeTestTool to extract event_type from ctapipe.containers.EventType
- utils.py: refactor plot_deadtime_and_expo_fit with temporary output for the GUI
- resources/source_type_labels.json: change color for SUBARRAY to pink - deadtime.py: docstring and refactor few function arguments to display in the GUI
|
Hi @tibaldo, with these last few pushes, this PR satisfies the same requirements as for the TRR deadtime test, and produces the plots for the GUI in you can get the plots below:
You can also visualise the same plots via the GUI (in which you'll see the distributions for all the runs). |
tibaldo
left a comment
There was a problem hiding this comment.
Ciao @alessandromontanari, thank you very much for proposing this PR! I look through it and I have some questions mostly related to keep consistency across the NectarCAM software and avoid code duplication. Otherwise this looks good to merge to me!
… add docstring to explain source type labels taken from ctapipe.containers
- deadtime.py: removed - gui.py: now import deadtime.py from ../trr_test_suite - ../trr_test_suite/deadtime.py: refactor to accomodate both 'trr' and 'av' tests, and GUI arguments - source_type_labels.json: moved to ../trr_test_suite/resources
|
Hi @tibaldo and @jlenain, |
…path to JSON file for labels in get_labels()
|
Thank you @alessandromontanari, after the latest changes everything looks good as far as I can tell! |



feat(src/nectarchain/acceptance_verification_package):
This PR will implement the test to plot deadtime and event time-difference distributions for the acceptance verification on site. It follows the logic already implemented for the TRR test suite.